home *** CD-ROM | disk | FTP | other *** search
- Path: news.ICSI.Net!news
- From: mrn623@icsi.net
- Newsgroups: comp.lang.c
- Subject: Help w/ C + EMX + OS/2
- Date: 31 Mar 1996 18:37:20 GMT
- Organization: Internet Connect Services, Inc.
- Message-ID: <4jmjd0$ai2@monet.ICSI.Net>
- Reply-To: mrn623@icsi.net
- NNTP-Posting-Host: 205.240.54.27
- X-Newsreader: IBM NewsReader/2 v1.9d - NLS
-
- Hi everyone!
-
- I'm writing a simple program to assit me with BattleTech, and I'm using EMX under
- OS/2...
-
- I try to compile this code with:
-
- gcc test.c -lvideo
- ************************
- #include <stdio.h>
- #include <sys/video.h>
-
- int det_tech ( void );
- void prep_vid( void );
-
- prep_vid()
- {
- v_clear();
- v_gotoxy( 0, 0 );
- }
-
- det_tech()
- {
- int a;
- prep_vid();
- printf( "Choose a technology base:\n" );
- printf( "1) Inner Sphere\n" );
- printf( "2) Clan\n\n" );
- printf( "Your selection - " );
- scanf( "%d", a );
- prep_vid();
- return a;
- }
-
- main()
- {
- int tech_base = det_tech();
- v_init();
- if ( tech_base = 1 ) {
- printf( "Inner Sphere" );
- } else {
- printf( "Clan" );
- } /* endif */
- }
- **************************
-
- and I get
- test.c:8: conflicting types for 'prep_vid'
- test.c:5: previous declaration of 'prep_vid'
-
- What am I doing wrong???
-
-